﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SharingCenter.Web.Classes;

namespace SharingCenter.Web.Shared
{
    public partial class GroupListBlock : System.Web.UI.UserControl
    {
        public int GroupItemCount { get { return lvGroups.GroupItemCount; } set { lvGroups.GroupItemCount = value; } }

        public List<Sc_Group> GroupList
        {
            get;
            set;
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            lvGroups.DataSource = GroupList;
            lvGroups.DataBind();
        }
    }
}